<m:message xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:m="http://jboss.com/products/seam/mail"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib">
	<m:from name="www.crotouristguide.com"
		address="contact@crotouristguide.com" />
	<m:to>#{feedbackAction.feedbackFriendEmail}</m:to>

	<m:subject>#{messages['ctg']} - #{messages['label.email.abilities.sendmailtofriend.subject.compare']}</m:subject>
	<m:body>
		<table>
			<tr>
				<td colspan="3" style="font-weight: bold;">
					<h:outputText
						value="#{messages['message.objekt.contact.senderdata']}" />
				</td>
			</tr>
			<tr>
				<td>
					<h:outputText
						value="#{messages['message.objekt.contact.sendername']}" />
				</td>
				<td width="5px"></td>
				<td style="font-weight: bold;">
					<h:outputText value="#{feedbackAction.feedbackName}" />

				</td>
			</tr>
			<tr>
				<td>
					<h:outputText
						value="#{messages['message.objekt.contact.sendermail']}" />
				</td>
				<td></td>
				<td style="font-weight: bold;">
					<h:outputText value="#{feedbackAction.feedbackEmail}" />
				</td>
			</tr>
		</table>

		<h:panelGroup rendered="#{! empty feedbackAction.feedbackMessage}">
			<p>
				<h:outputText
					value="#{messages['message.objekt.contact.sendernote']}" />
				<br />
				<i><h:outputText value="#{feedbackAction.feedbackMessage}" />
				</i>
			</p>
		</h:panelGroup>
		<h:panelGroup>
			<p>
				<h:outputText value="#{messages['label.email.abilities.sendmailtofriend.objektcomparetip']}" />
			</p>
		</h:panelGroup>	
		<p>
			<b><h:outputLink value="http://www.crotouristguide.com">
				<h:outputText
						value="#{messages['label.email.abilities.sendmailtofriend.linktoctg']}" />
				</h:outputLink> </b>
		</p>
	 <table>
         <tr>
         <th rowspan="2">#{messages['label.osobine']}</th><th colspan="#{objektiForCompare.size()+1}">#{messages['label.objekt.comp.title']}</th>
         </tr>
        <tr>
       	   <ui:repeat value="#{objektiForCompare}" var="objektSD">
             <th><h:outputText value="#{objektSD.naziv}" /></th>	
           </ui:repeat>  
        </tr>  
          <ui:repeat value="#{feedbackAction.osobineUUsporedbi}" var="key">
            <tr>
                <td><h:outputText value="#{key}" /></td>
                <ui:repeat value="#{comparisonTable[key]}" var="vrijednost">
                	<td><h:outputText value="#{vrijednost}" /></td>
                </ui:repeat> 	 	 	 	
            </tr>
          </ui:repeat> 
         <tr>
         <td colspan="#{objektiForCompare.size()+2}">#{messages['label.compare.footernote']}</td>
         </tr> 
       </table> 	
		<hr />
		<p style="font-size: 10px; font-family: Arial;">
			<h:outputText
				value="#{messages['label.email.abilities.sendmailtofriend.tmplt.footer']}" />
		</p>	
	</m:body>
</m:message>